#ifndef BEARD_H_
#define BEARD_H_

#include "Rope.h"
#include "Vector2D.h"
#include "Object.h"
#include "TextureManager.h"

class Beard : public Rope
{
	protected:
	virtual void DrawQuad(Vector2D p1, Vector2D p2, float width1, float width2, float * startTexHeight);
	bool lastWhipDirection[4];
	float red;
	float green;
	float blue;
	TextureManager * textureManager;
	int textureIndex;
	
	
	public:
	
	Beard(Vector2D * anchor, StringSegment * segments, int numSegments);
	Beard(Vector2D * anchor, int numSegments, float mass, float length, float stringConstant);
	Beard(Vector2D * anchor, int numSegments, float mass, float length, float stringConstant, float red, float green, float blue);
	Beard(Vector2D * anchor, int numSegments, float mass, float length, float stringConstant, TextureManager * textureManager, char * textureName);
	virtual ~Beard();
	virtual void Draw();
	virtual void Whip(bool left, bool right, bool up, bool down);
	virtual void DirectionalWhip(Vector2D direction);
	virtual void Whip(Vector2D mousePoint);
	virtual void Move(Vector2D mousePoint);	
};
#endif /*BEARD_H_*/
